<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>

	<div id="${fieldId}_div">
	
		${corpo}
		
		<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/resources/componentes/validator/css/validator.css"/>
		<script type="text/javascript" src="${pageContext.request.contextPath}/resources/componentes/validator/js/Validator.js"></script>
			${required}
			<c:if test="${not empty required and not empty requiredMessage}">
				<span id="required" name="required" class="campo_invisivel" message="${requiredMessage}"></span>
			</c:if>
			<c:if test="${not empty required and empty requiredMessage}">
				<span id="required" name="required" class="campo_invisivel"></span>
			</c:if>
		
			<c:if test="${not empty email and not empty emailMessage}">
				<span id="email" name="email" class="campo_invisivel" message="${emailMessage}"></span>
			</c:if>
			<c:if test="${not empty email and empty emailMessage}">
				<span id="email" name="email" class="campo_invisivel"></span>
			</c:if>
		
		
			<c:if test="${not empty remote and not empty remoteMessage}">
				<span id="remote" name="remote" class="campo_invisivel" message="${remoteMessage}">${remote}</span>
			</c:if>
			<c:if test="${not empty remote and empty remoteMessage}">
				<span id="remote" name="remote" class="campo_invisivel">${remote}</span>
			</c:if>
			
			<c:if test="${not empty minlength and not empty minlengthMessage}">
				<span id="minlength" name="minlength" class="campo_invisivel" message="${minlengthMessage}">${minlength}</span>
			</c:if>
			<c:if test="${not empty minlength and empty minlengthMessage}">
				<span id="minlength" name="minlength" class="campo_invisivel">${minlength}</span>
			</c:if>
			
			<c:if test="${not empty maxlength and not empty maxlengthMessage}">
				<span id="maxlength" name="maxlength" class="campo_invisivel" message="${maxlengthMessage}">${maxlength}</span>
			</c:if>
			<c:if test="${not empty maxlength and empty maxlengthMessage}">
				<span id="maxlength" name="maxlength" class="campo_invisivel">${maxlength}</span>
			</c:if>
			
			<c:if test="${not empty rangelength and not empty rangelengthMessage}">
				<span id="rangelength" name="rangelength" class="campo_invisivel" message="${rangelengthMessage}">${rangelength}</span>
			</c:if>
			<c:if test="${not empty rangelength and empty rangelengthMessage}">
				<span id="rangelength" name="rangelength" class="campo_invisivel">${rangelength}</span>
			</c:if>
			
			<c:if test="${not empty min and not empty minMessage}">
				<span id="min" name="min" class="campo_invisivel" message="${minMessage}">${min}</span>
			</c:if>
			<c:if test="${not empty min and empty minMessage}">
				<span id="min" name="min" class="campo_invisivel">${min}</span>
			</c:if>
			
			<c:if test="${not empty max and not empty maxMessage}">
				<span id="max" name="max" class="campo_invisivel" message="${maxMessage}">${max}</span>
			</c:if>
			<c:if test="${not empty max and empty maxMessage}">
				<span id="max" name="max" class="campo_invisivel">${max}</span>
			</c:if>
			
			<c:if test="${not empty range and not empty rangeMessage}">
				<span id="range" name="range" class="campo_invisivel" message="${rangeMessage}">${range}</span>
			</c:if>
			<c:if test="${not empty range and empty rangeMessage}">
				<span id="range" name="range" class="campo_invisivel">${range}</span>
			</c:if>
			
			<c:if test="${not empty url and not empty urlMessage}">
				<span id="url" name="url" class="campo_invisivel" message="${urlMessage}"></span>
			</c:if>
			<c:if test="${not empty url and empty urlMessage}">
				<span id="url" name="url" class="campo_invisivel"></span>
			</c:if>
			
			<c:if test="${not empty date and not empty dateMessage}">
				<span id="date" name="date" class="campo_invisivel" message="${dateMessage}"></span>
			</c:if>
			<c:if test="${not empty date and empty dateMessage}">
				<span id="date" name="date" class="campo_invisivel"></span>
			</c:if>
			
			<c:if test="${not empty dateISO and not empty dateISOMessage}">
				<span id="dateISO" name="dateISO" class="campo_invisivel" message="${dateISOMessage}"></span>
			</c:if>
			<c:if test="${not empty dateISO and empty dateISOMessage}">
				<span id="dateISO" name="dateISO" class="campo_invisivel"></span>
			</c:if>
			
			<c:if test="${not empty dateITA and not empty dateITAMessage}">
				<span id="dateITA" name="dateITA" class="campo_invisivel" message="${dateITAMessage}"></span>
			</c:if>
			<c:if test="${not empty dateITA and empty dateITAMessage}">
				<span id="dateITA" name="dateITA" class="campo_invisivel"></span>
			</c:if>
			
			<c:if test="${not empty number and not empty numberMessage}">
				<span id="number" name="number" class="campo_invisivel" message="${numberMessage}"></span>
			</c:if>
			<c:if test="${not empty number and empty numberMessage}">
				<span id="number" name="number" class="campo_invisivel"></span>
			</c:if>
			
			<c:if test="${not empty digits and not empty digitsMessage}">
				<span id="digits" name="digits" class="campo_invisivel" message="${digitsMessage}"></span>
			</c:if>
			<c:if test="${not empty digits and empty digitsMessage}">
				<span id="digits" name="digits" class="campo_invisivel"></span>
			</c:if>
			
			<c:if test="${not empty creditcard and not empty creditcardMessage}">
				<span id="creditcard" name="creditcard" class="campo_invisivel" message="${creditcardMessage}"></span>
			</c:if>
			<c:if test="${not empty creditcard and empty creditcardMessage}">
				<span id="creditcard" name="creditcard" class="campo_invisivel"></span>
			</c:if>
			
			<c:if test="${not empty equalTo and not empty equalToMessage}">
				<span id="equalTo" name="equalTo" class="campo_invisivel" message="${equalToMessage}">${equalTo}</span>
			</c:if>
			<c:if test="${not empty equalTo and empty equalToMessage}">
				<span id="equalTo" name="equalTo" class="campo_invisivel">${equalTo}</span>
			</c:if>
			
			<c:if test="${not empty cnpjValidator and not empty cnpjValidatorMessage}">
				<span id="cnpjValidator" name="cnpjValidator" class="campo_invisivel" message="${cnpjValidatorMessage}"></span>
			</c:if>
			<c:if test="${not empty cnpjValidator and empty cnpjValidatorMessage}">
				<span id="cnpjValidator" name="cnpjValidator" class="campo_invisivel"></span>
			</c:if>
			
			
			<c:if test="${not empty cpfValidator and not empty cpfValidatorMessage}">
				<span id="cpfValidator" name="cpfValidator" class="campo_invisivel" message="${cpfValidatorMessage}"></span>
			</c:if>
			<c:if test="${not empty cpfValidator and empty cpfValidatorMessage}">
				<span id="cpfValidator" name="cpfValidator" class="campo_invisivel"></span>
			</c:if>
			
			
			<c:if test="${not empty urlShort and not empty urlShortMessage}">
				<span id="urlShort" name="urlShort" class="campo_invisivel" message="${urlShortMessage}"></span>
			</c:if>
			<c:if test="${not empty urlShort and empty urlShortMessage}">
				<span id="urlShort" name="urlShort" class="campo_invisivel"></span>
			</c:if>
			
			
		</div>
	
		<script type="text/javascript">

			<c:set var="required" value=""></c:set>
			<c:set var="requiredMessage" value=""></c:set>
			<c:set var="email" value=""></c:set>
			<c:set var="emailMessage" value=""></c:set>
			<c:set var="remote" value=""></c:set>
			<c:set var="remoteMessage" value=""></c:set>
			<c:set var="minlength" value=""></c:set>
			<c:set var="minlengthMessage" value=""></c:set>
			<c:set var="maxlength" value=""></c:set>
			<c:set var="maxlengthMessage" value=""></c:set>
			<c:set var="rangelength" value=""></c:set>
			<c:set var="rangelengthMessage" value=""></c:set>
			<c:set var="min" value=""></c:set>
			<c:set var="minMessage" value=""></c:set>
			<c:set var="max" value=""></c:set>		
			<c:set var="maxMessage" value=""></c:set>
			<c:set var="range" value=""></c:set>
			<c:set var="rangeMessage" value=""></c:set>
			<c:set var="url" value=""></c:set>
			<c:set var="urlMessage" value=""></c:set>
			<c:set var="date" value=""></c:set>
			<c:set var="dateMessage" value=""></c:set>
			<c:set var="dateISO" value=""></c:set>
			<c:set var="dateISOMessage" value=""></c:set>
			<c:set var="dateITA" value=""></c:set>
			<c:set var="dateITAMessage" value=""></c:set>
			<c:set var="number" value=""></c:set>
			<c:set var="numberMessage" value=""></c:set>
			<c:set var="digits" value=""></c:set>
			<c:set var="digitsMessage" value=""></c:set>
			<c:set var="creditcard" value=""></c:set>
			<c:set var="creditcardMessage" value=""></c:set>
			<c:set var="equalTo" value=""></c:set>
			<c:set var="equalToMessage" value=""></c:set>
			<c:set var="cnpjValidator" value=""></c:set>
			<c:set var="cnpjValidatorMessage" value=""></c:set>
			<c:set var="cpfValidator" value=""></c:set>
			<c:set var="cpfValidatorMessage" value=""></c:set>
			<c:set var="urlShort" value=""></c:set>
			<c:set var="urlShortMessage" value=""></c:set>
		
		</script>
	
</body>
</html>